#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import random

print('-------欢迎来到猜数字游戏--------')

guess = int(input('请输入您猜的数字:'))
randomNum = random.randint(1,10)
while guess != randomNum:
	if guess > randomNum:
		print('比答案要大')
	else:
		print('比答案要小')
	guess = int(input('请输入您猜的数字:'))
	randomNum = random.randint(1,10)
print('恭喜您，猜对正确答案，游戏结束')


# 总结
# random,随机数模块
# and：与语法
# while控制语法

	